package Spring5.第二章.demo2_5_代理模式.动态代理.Jdk实现方式.demo01;

import Spring5.第二章.demo2_5_代理模式.静态代理.demo01.Person;

/**
 * 客户类
 */
public class Customer implements Person {
    @Override
    public void findLove() {
        System.out.println("高富帅");
        System.out.println("身高180");
        System.out.println("有8块腹肌");
    }

    public static void main(String[] args) {
        try {
            Person obj = (Person) new JDKMeipo().getInstance(new Customer());
            obj.findLove();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
